<%--
  Created by IntelliJ IDEA.
  User: 20456
  Date: 2021/11/22
  Time: 16:28
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page isELIgnored="false"%>
<% String contextPath = request.getContextPath(); %>
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1"/>
    <title>前台界面</title>
    <link rel="stylesheet" type="text/css" href="<%=contextPath%>/bootstrap-3.4.1-dist/css/bootstrap.min.css"/>
    <link rel="stylesheet" type="text/css" href="<%=contextPath%>/css/maincomplex.css"/>
    <link rel="stylesheet" type="text/css" href="<%=contextPath%>/css/resetcomplex.css"/>
    <script src="<%=contextPath%>/js/jquery-3.6.0.min.js"></script>
    <script src="<%=contextPath%>/bootstrap-3.4.1-dist/js/bootstrap.min.js"></script>
</head>
<body>

<div class="submena clearfix">
    <a href=" ">全部菜品</a>
    <span></span>
    <a href=" ">菜品详情</a>
</div>
<div class="center_con clearfix">
    <div class="main_menu fl"><img src="${food.picture}"></div>
    <div class="goods_detail_list fr">
        <h3>${food.foodname}</h3>
        <p>${food.feature}</p>
        <p>${food.material}</p>
        <div class="prize_bar">
            <div class="show_prize fl">￥<em>${food.price}.00</em></div>
            <div class="show_unit fl">单位：500g</div>
        </div>
        <div class="goods_num clearfix">
            <div class="num_name fl">数量：</div>
            <div class="num_add fl">
                <input type="text" class="num_show fl" value="1" readonly>
                <%--<a href="javascript:;" class="add fr">+</a>--%>
                <%--<a href="javascript:;" class="minus fr">-</a>--%>
            </div>
        </div>
        <div class="total">总价：<em>${food.price}.00元</em></div>
        <div class="operate_btn">

            <a href="http://localhost/front/adddiningcar?id=${food.id}" class="add_cart" target="_blank">加入购物车</a>
        </div>
    </div>
</div>



</body>
</html>
